package com.tanhua.model.soul;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class ChoicesVo  {
    private  String id;
    private  String option;  //选项

    public static List<ChoicesVo> init(List<Choices> choices){
        List<ChoicesVo> vo=new ArrayList<>();
        for (Choices choice : choices) {
            ChoicesVo choicesVo=new ChoicesVo();
            choicesVo.setId(choice.getId().toString());
            choicesVo.setOption(choice.getOptions());
            vo.add(choicesVo);
        }


        return vo;

    }
}
